﻿// <copyright file="Amendment.cs" company="Microsoft Corporation">
// Copyright (c) 2009 Microsoft Corporation All Rights Reserved
// </copyright>
// <author>Michael S. Scherotter</author>
// <email>mischero@microsoft.com</email>
// <date>2009-05-28</date>
// <summary>Ammendment class definition</summary>

namespace NYTimes.Data
{
    using System;

    /// <summary>
    /// Bill amendment
    /// </summary>
    public class Amendment
    {
        /// <summary>
        /// Gets or sets the bill number
        /// </summary>
        public string Number { get; set; }

        /// <summary>
        /// Gets or sets the sponsor ID
        /// </summary>
        public string SponsorId { get; set; }

        /// <summary>
        /// Gets or sets the introduction date
        /// </summary>
        public DateTime IntroducedDate { get; set; }

        /// <summary>
        /// Gets or sets the Bill title
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// Gets or sets the last major action date
        /// </summary>
        public DateTime LatestMajorActionDate { get; set; }

        /// <summary>
        /// Gets or sets the last major action
        /// </summary>
        public string LatestMajorAction { get; set; }

        /// <summary>
        /// returns a string with all of the non-null properties and values
        /// </summary>
        /// <returns>a string with all of the non-null properties and values</returns>
        public override string ToString()
        {
            return Synergist.Utility.GetProperties(this);
        }
    }
}
